package com.dream.testtubebaby.adapter;

import java.util.List;

import android.content.Context;

import com.dream.testtubebaby.R;
import com.dream.testtubebaby.data.product.ProductClassifyData;
import com.dream.testtubebaby.utils.ViewHolder;

public class ProductClassifyAdapter extends CommonAdapter<ProductClassifyData> {

	public ProductClassifyAdapter(Context context,
			List<ProductClassifyData> mDatas, int itemLayoutId) {
		super(context, mDatas, itemLayoutId);
	}

	@Override
	public void convert(ViewHolder helper, ProductClassifyData item) {
		helper.setImageResource(R.id.product_classity_img, item.getRes_id());
		helper.setText(R.id.product_classity_tv, item.getTitle());
	}

}
